package com.ssm.mapper;

import com.ssm.entity.pojo.MmallUser;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.Map;

public interface MmallUserMapper extends Mapper<MmallUser> {
    MmallUser selectLogin(Map params);
    int checkUsername(String username);
    int checkEmail(String email);
    int insertUser(MmallUser user);
    String selectQuestionByUsername(String username);
    int checkAnswer(Map params);
    int updatePasswordByUsername(@Param("username") String username,@Param("passwordnew") String passwordnew);
    int checkPasswordById(Map params);
    int updateInfomation(MmallUser user);
    MmallUser getUserInformation(int id);
}